package IO;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;

public class IODEmo1 {
        public static void main(String[] args) throws IOException {
            File file = new File(".//text.txt");
            System.out.println("File对象的父目录文件路径: " + file.getParent());
            System.out.println("File对象的文件名称: " + file.getName());
            System.out.println("File对象的文件路径: " + file.getPath());
            System.out.println("File对象的绝对路径: " + file.getAbsolutePath());
            System.out.println(file.getCanonicalPath());
        }
}



